<?php
  $smarty = new Smarty();
  $smarty->compile_dir  = './templates_c/';
  $smarty->config_dir   = './configs/';
  $smarty->cache_dir    = './cache/';
  $smarty->template_dir = './templates/';
  $smarty->registerPlugin("function","sitename", "sitename");
?>